package com.general.client.widgets.span;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.ComplexPanel;
import com.google.gwt.user.client.ui.InsertPanel;
import com.google.gwt.user.client.ui.Widget;

public class Span extends ComplexPanel implements InsertPanel{
	
	public Span() {
		setElement(DOM.createSpan());
	}
	
	@Override
	public void add(Widget w) {
	  add(w, getElement());
	}

	@Override
	public void insert(Widget w, int beforeIndex) {
		insert(w, getElement(), beforeIndex, true);		
	}

}
